From: Jasper St. Pierre Date: Fri, 21 Dec 2012 16:10:25 +0000 (-0500) Subject: modalDialog: Make the button layout visible always X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5153 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=42e58a4b72231e7a5de7bcfe4a67b2e674d7e6fc;p=gnome-shell.git modalDialog: Make the button layout visible always With the last button-less modal dialog gone, there's no reason it should ever be hidden. https://bugzilla.gnome.org/show_bug.cgi?id=690594 --- diff --git a/js/ui/modalDialog.js b/js/ui/modalDialog.js index 065ce9e9b..ac74afdd9 100644 --- a/js/ui/modalDialog.js +++ b/js/ui/modalDialog.js @@ -96,8 +96,7 @@ const ModalDialog = new Lang.Class({ y_align: St.Align.START }); this.buttonLayout = new St.BoxLayout({ style_class: 'modal-dialog-button-box', - visible: false, - vertical: false }); + vertical: false }); this.dialogLayout.add(this.buttonLayout, { expand: true, x_align: St.Align.MIDDLE, @@ -120,7 +119,6 @@ const ModalDialog = new Lang.Class({ setButtons: function(buttons) { this.clearButtons(); - this.buttonLayout.visible = (buttons.length > 0); for (let i = 0; i < buttons.length; i++) { let buttonInfo = buttons[i];